﻿<%@ Control language="C#" Inherits="PotentialCustomer.ViewPotentialCustomer" CodeFile="ViewPotentialCustomer.ascx.cs" AutoEventWireup="true"%>
<%@ Register Src="../../controls/tm_TreeViewAdv.ascx" TagName="tm_TreeViewAdv" TagPrefix="uc1" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<div style="text-align: center">
    <table cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td align="center">
<asp:Panel ID="pnlAddNew" runat="server" Width="100%" Visible="False">
<table>
    <tr>
        <td valign="top">
        </td>
        <td>
            <asp:Label ID="lblAddTitle" runat="server" CssClass="titleText2">CẬP NHẬT THÔNG TIN</asp:Label></td>
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label1" runat="server" CssClass="titletext3" Text="Họ và tên : "></asp:Label>
            <asp:Label ID="Label8" runat="server" ForeColor="#C00000" Text="*"></asp:Label></td>
        <td>
            <asp:TextBox ID="txtFullName" runat="server"
                Width="250px"></asp:TextBox></td>
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label2" runat="server" CssClass="titletext3" Text="Email : "></asp:Label>
            <asp:Label ID="Label12" runat="server" ForeColor="#C00000" Text="*"></asp:Label></td>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" Width="250px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label4" runat="server" CssClass="titletext3" Text="Điện thọai :"></asp:Label>
            <asp:Label ID="Label9" runat="server" ForeColor="#C00000" Text="*"></asp:Label></td>
        <td valign="top">
            <asp:TextBox ID="txtPhone" runat="server" Width="250px"></asp:TextBox></td>
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label5" runat="server" CssClass="titletext3" Text="Fax :"></asp:Label>
            </td>
        <td>
            <asp:TextBox ID="txtFax" runat="server" Width="250px"></asp:TextBox></td>
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label6" runat="server" CssClass="titletext3" Text="Số di động :"></asp:Label>
            </td>
        <td>
            <asp:TextBox ID="txtMobile" runat="server" Width="250px"></asp:TextBox></td>
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label3" runat="server" CssClass="titletext3" Text="Địa chỉ :"></asp:Label>
            <asp:Label ID="Label14" runat="server" ForeColor="#C00000" Text="*"></asp:Label></td>
        <td>
            <asp:TextBox ID="txtAddress" runat="server" Width="500px"></asp:TextBox></td>
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label7" runat="server" CssClass="titletext3" Text="Công ty :  "></asp:Label>
            <asp:Label ID="Label16" runat="server" ForeColor="#C00000" Text="*"></asp:Label></td>
        <td>
            <asp:TextBox ID="txtCompany" runat="server" Width="500px"></asp:TextBox></td>
    </tr>
    <tr>
        <td valign="top">
        </td>
        <td>
            <asp:LinkButton ID="btnViewProductCat" runat="server" OnClick="btnViewProductCat_Click">Hiện danh mục lãnh vực quan tâm</asp:LinkButton></td>
    </tr>
    <tr>
        <td colspan="2" valign="top" style="height: 53px">
            <uc1:tm_TreeViewAdv ID="Tm_ProductCat" runat="server" myHeight="200" Visible="true" />
        </td>
    </tr>
    <tr>
        <td valign="top">
        </td>
        <td>
            <asp:CheckBox ID="chkSendMail" runat="server" Text="Gởi thông báo đến người sử dụng" /></td>
    </tr>
    <tr>
        <td valign="top">
        </td>
        <td>
            <asp:Button ID="btnOk" runat="server" CssClass="btn" Text=" Lưu "
                Width="80px" OnClick="btnOk_Click" />
            <asp:Button ID="btnReset" runat="server" CssClass="btn" Text="Làm lại"
                Width="80px" OnClick="btnReset_Click" />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:Button ID="btnAddNew2" runat="server" CssClass="btn" Text="Thêm mới"
                Width="80px" OnClick="btnDoAdd_Click" />
            &nbsp;
            <asp:Button ID="btnSearch" runat="server" CssClass="btn" Text="Tìm kiếm"
                Width="80px" OnClick="btnSearch_Click" /></td>
    </tr>
    <tr>
        <td style="height: 21px" valign="top">
        </td>
        <td align="left">
            <asp:Label ID="lblMessage" runat="server"></asp:Label></td>
    </tr>
    <tr>
        <td style="height: 21px" valign="top">
        </td>
        <td align="left">
            <asp:Label ID="lblDebugMessage" runat="server"></asp:Label></td>
    </tr>
</table>
</asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="center">
<asp:Panel ID="pnlSearch" runat="server" Width="100%">
    <table>
        <tr>
            <td valign="top">
                <asp:Label ID="Label11" runat="server" CssClass="titletext3" Text="Họ và tên : "></asp:Label>
                </td>
            <td style="width: 503px">
                <asp:TextBox ID="tbxFullName" runat="server" Width="310px"></asp:TextBox></td>
        </tr>
        <tr>
            <td valign="top">
                <asp:Label ID="Label15" runat="server" CssClass="titletext3" Text="Email : "></asp:Label>
                </td>
            <td style="width: 503px">
                <asp:TextBox ID="tbxEmail" runat="server" Width="310px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top">
            </td>
            <td style="width: 503px">
            </td>
        </tr>
        <tr>
            <td valign="top">
                <asp:Label ID="Label20" runat="server" CssClass="titletext3" Text="Điện thọai :"></asp:Label>
                </td>
            <td valign="top" style="width: 503px">
                <asp:TextBox ID="tbxPhone" runat="server" Width="136px"></asp:TextBox></td>
        </tr>
        <tr>
            <td valign="top">
                <asp:Label ID="Label24" runat="server" CssClass="titletext3" Text="Công ty :  "></asp:Label>
                </td>
            <td style="width: 503px">
                <asp:TextBox ID="tbxCompanyName" runat="server" Width="310px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="height: 26px" valign="top">
            </td>
            <td style="width: 503px; height: 26px">
                &nbsp;<asp:Button ID="btnDoSearch" runat="server" CssClass="btn" Text="Tìm kiếm"
                Width="80px" OnClick="btnDoSearch_Click" />
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                <asp:Button ID="btnDoAdd" runat="server" CssClass="btn" Text="Thêm mới"
                Width="80px" OnClick="btnDoAdd_Click" /></td>
        </tr>
    </table>
    <br />
</asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="center">
<asp:Panel ID="pnlSearchList" runat="server" HorizontalAlign="Left" Visible="False" Width="100%">
    &nbsp;<asp:Label ID="lblSearchResult" runat="server" CssClass="titleText3"></asp:Label>
    <asp:GridView ID="gvList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        CssClass="table" Width="100%" OnPageIndexChanging="gvList_PageIndexChanging">
        <PagerSettings Mode="NumericFirstLast" />
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="cbxCheck" runat="server" />
                    <asp:Label ID="lblUserId" runat="server" Text='<%# Eval("userId") %>' Visible="false"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="M&#227; số" SortExpression="contactCode">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("contactCode") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# GetURL(Eval("userId").ToString()) %>' Text='<%# Bind("contactCode") %>'></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="10%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Họ t&#234;n" SortExpression="fullName">
                <ItemTemplate>
                    <asp:Label ID="Label19" runat="server" Text='<%# Bind("fullName") %>'></asp:Label>&nbsp;
                </ItemTemplate>
                <ItemStyle Width="20%" />
            </asp:TemplateField>
            <asp:BoundField DataField="companyName1" HeaderText="C&#244;ng ty" SortExpression="companyName1" >
                <ItemStyle Width="30%" />
            </asp:BoundField>
            <asp:BoundField DataField="address1" HeaderText="Địa chỉ" SortExpression="address1" >
                <ItemStyle Width="40%" />
            </asp:BoundField>
        </Columns>
        <PagerStyle HorizontalAlign="Right" />
    </asp:GridView>
    <asp:Button ID="btnDelete" runat="server" CssClass="btn" Text="Xóa chọn" Width="80px" OnClick="btnDelete_Click" OnClientClick="&quot;return confirm('Xóa khách hàng đã chọn ?')&quot;" />
    <asp:Label ID="lblNoticeDelete" runat="server"></asp:Label></asp:Panel>
            </td>
        </tr>
    </table>
</div>
<br />
&nbsp;&nbsp;
